// 数据字典
import request from "@/utils/request";

export function addDataDictionary(data) {
  return request({
    url: "/api/addDataDictionary",
    method: "post",
    data,
  });
}

export function getDataDictionary(data) {
  return request({
    url: "/api/getDataDictionary",
    method: "post",
    data,
  });
}

export function delDataDictionary(data) {
  return request({
    url: "/api/delDataDictionary",
    method: "post",
    data,
  });
}

export function addDictionaryItem(data) {
  return request({
    url: "/api/addDictionaryItem",
    method: "post",
    data,
  });
}

export function getDictionaryItem(data) {
  return request({
    url: "/api/getDictionaryItem",
    method: "post",
    data,
  });
}

export function delDictionaryItem(data) {
  return request({
    url: "/api/delDictionaryItem",
    method: "post",
    data,
  });
}

export function addWhiteList(data) {
  return request({
    url: "/api/addWhiteList",
    method: "post",
    data,
  });
}

export function syncWhiteList(data) {
  return request({
    url: "/api/syncWhiteList",
    method: "post",
    data,
  });
}

export function getWhiteList(data) {
  return request({
    url: "/api/getWhiteList",
    method: "post",
    data,
  });
}

export function delWhiteList(data) {
  return request({
    url: "/api/delWhiteList",
    method: "post",
    data,
  });
}
